package com.laopan.wxpay.bean.prepay;

import com.google.gson.annotations.SerializedName;

/**
 * 微信支付-描述订单金额。
 * @author laopan
 * @className OrderAmount
 * @date 2020/12/9 19:40
 */
public class OrderAmount {
    /**
     * 订单总金额，单位为分。
     * 示例值：100
     * 当为合单支付时， 名称为 'total_amount'
     * [r]
     */
    @SerializedName(value = "total", alternate = "total_amount")
    private Integer total;

    /**
     * CNY：人民币，境内商户号仅支持人民币。
     * 示例值：CNY
     * [o]
     */
    private String currency;

    public OrderAmount() {
    }
    public OrderAmount(Integer total) {
        this.total = total;
    }
    public OrderAmount(Integer total, String currency) {
        this.total = total;
        this.currency = currency;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }
}
